﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yoshizawa
{
    public static class BuiltinValidator
    {
        private static readonly StringRequiredValidator stringRequiredValidator = new StringRequiredValidator();
        private static readonly StringMinLengthValidator stringMinLengthValidator = new StringMinLengthValidator();
        private static readonly StringMaxLengthValidator stringMaxLengthValidator = new StringMaxLengthValidator();

        public static string Required(string value)
        {
            return stringRequiredValidator.Validate(value);
        }

        public static string MinLength(string value, int min)
        {
            return stringMinLengthValidator.Validate(value, min);
        }

        public static string MaxLength(string value, int max)
        {
            return stringMaxLengthValidator.Validate(value, max);
        }
    }
}
